/* 主容器样式 */
.gradio-container {
    background: var(--background-fill-primary) !important;
}

.main-container {
    background: var(--background-fill-primary) !important;
    padding: 20px !important;
    margin: 0 auto !important;
    max-width: 900px !important;
}

/* 聊天机器人样式 */
.chatbot {
    background: var(--background-fill-primary) !important;
    border: 1px solid var(--border-color-primary) !important;
    border-radius: 8px !important;
    min-height: 450px !important;
}

/* 输入框样式 */
.textbox textarea {
    border-radius: 8px !important;
    border: 2px solid var(--border-color-primary) !important;
    padding: 16px !important;
    font-size: 14px !important;
    min-height: 80px !important;
    resize: vertical !important;
}

.textbox textarea:focus {
    border-color: var(--button-primary-background-fill) !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1) !important;
}

/* 按钮样式 */
.send-button {
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    height: 40px !important;
    min-width: 100px !important;
    background: var(--button-primary-background-fill) !important;
}

.send-button:hover {
    background: var(--button-primary-background-fill-hover) !important;
    transform: translateY(-1px) !important;
}

.clear-button {
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    height: 40px !important;
    min-width: 100px !important;
    background: #6c757d !important;
}

.clear-button:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
}

/* 标题样式 */
.title {
    text-align: center !important;
    color: var(--body-text-color) !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    font-size: 24px !important;
}

.subtitle {
    text-align: center !important;
    color: var(--body-text-color-subdued) !important;
    margin-bottom: 30px !important;
    font-size: 14px !important;
}

/* 布局样式 */
.button-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: 100% !important;
    justify-content: flex-start !important;
}

.input-row {
    align-items: flex-start !important;
}

/* 消息气泡样式 */
.user-message {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 8px 16px !important;
    margin: 5px 0 !important;
    max-width: 80% !important;
    margin-left: auto !important;
    line-height: 1.4 !important;
}

.bot-message {
    background: #f1f3f4 !important;
    color: #333 !important;
    border-radius: 18px 18px 18px 4px !important;
    padding: 8px 16px !important;
    margin: 5px 0 !important;
    max-width: 80% !important;
    border: 1px solid #e0e0e0 !important;
    line-height: 1.4 !important;
}

.message {
    line-height: 1.4 !important;
}